package com.splant.android.smart.UILevel.Community;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.splant.android.R;

/**
 * Created by Administrator on 2017/8/18.
 */

public class Garden_WaterList_Search_Adapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    public Garden_WaterList_Search_Adapter()
    {

    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {



        return null;
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 0;
    }

    public class DetectorsHolder extends RecyclerView.ViewHolder{

        private View v_abnState;
        private ImageView img_plant;
        private TextView tv_detectorName;
        private TextView tv_waterName;
        private TextView tv_plantName;
        private ImageView img_electricity;
        private TextView tv_switchNo;

        public DetectorsHolder(View itemView) {
            super(itemView);
            v_abnState=itemView.findViewById(R.id.v_abnState);
            img_plant= (ImageView) itemView.findViewById(R.id.img_plant);
            tv_detectorName= (TextView) itemView.findViewById(R.id.tv_detectorName);
            tv_waterName= (TextView) itemView.findViewById(R.id.tv_waterName);
            tv_plantName= (TextView) itemView.findViewById(R.id.tv_plantName);
            img_electricity= (ImageView) itemView.findViewById(R.id.img_electricity);
            tv_switchNo= (TextView) itemView.findViewById(R.id.tv_switchNo);
        }

    }

    public class WatersHolder extends RecyclerView.ViewHolder{

        public ImageView img_water;
        public TextView tv_waterName;
        public TextView tv_switch0;
        public TextView tv_switch1;
        public TextView tv_switch2;
        public ImageView img_electricity;
        public TextView tv_waterState;

        public WatersHolder(View itemView) {
            super(itemView);
            img_water= (ImageView) itemView.findViewById(R.id.img_water);
            tv_waterName= (TextView) itemView.findViewById(R.id.tv_waterName);
            img_electricity= (ImageView) itemView.findViewById(R.id.img_electricity);
            tv_switch0= (TextView) itemView.findViewById(R.id.tv_switch0);
            tv_switch1= (TextView) itemView.findViewById(R.id.tv_switch1);
            tv_switch2=(TextView) itemView.findViewById(R.id.tv_switch2);
            tv_waterState= (TextView) itemView.findViewById(R.id.tv_waterState);
        }
    }

}
